import instance from "./request";
// 数据
export let httplist=()=>{
    return instance.get('/list')
}
// 添加
export let httpadd=(obj)=>{
    return instance.post('/list',obj)
}
// 修改
export let httpedit=(obj)=>{
    return instance.patch(`/list/${obj.id}`,obj)
}
// 删除
export let httpdel=(id)=>{
return instance.delete(`/list/${id}` )
}
// 查找
export let httpsearch=(obj)=>{
    return instance.get('/list',{params:obj})
}